﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using University.Workshop.DataAccess;

namespace University.Workshop.Business
{
    public static class PurchaseReportControl
    {

        public static DataTable GetAllPurchaseProducts(string property)
        {
            return PurchaseReportData.GetAllPurchaseProducts(property);
        }

        public static DataTable GetASpecificDetailPurchases(string purchaseCode)
        {
            return PurchaseReportData.GetASpecificPurchaseDetail(purchaseCode);
        }

        public static DataTable GetAnSpecificProductBetweenFromTo(string productCode, DateTime from, DateTime to)
        {
            return PurchaseReportData.GetAnSpecificProductBetweenFromTo(productCode,from,to);
        }
        public static string GetProductNameByCode(string productCode)
        {
            return PurchaseReportData.GetProductNameByCode(productCode);
        }

        public static DataTable GetAnSpecificProviderBetweenFromTo(string providerCode, DateTime from, DateTime to)
        {
            return PurchaseReportData.GetAnSpecificProviderBetweenFromTo(providerCode, from, to);
        }

        public static string GetProviderNameByCode(string providerCode)
        {
            return PurchaseReportData.GetProviderNameByCode(providerCode);
        }

        public static DataTable GetAllPurchaseProductsBetweenDates(DateTime from, DateTime to)
        {
            return PurchaseReportData.GetAllPurchaseProductsBetweenDates(from, to);
        }
    }
}
